<?php
require('includes/top.php');
$subcategory = $_POST["subcategory"];
$categories=$_POST['category'];
//$struid = $_SESSION['uid'];		
$sql="INSERT INTO subcategories(`subcategory`,`category_id`) VALUES ('$subcategory','$categories')";
$result=mysql_query($sql);
header("location:addsubcategory.php");
ob_flush();
?>
 